<?php
	function loadPageTable($pagename,& $start,$limit,$nume){
	
	echo "<table border='0' cellspacing='5' cellpadding='0'>
							<tr>";
								if($start-$limit >=0){
								echo "<td><a href='". $pagename.'&start='.($start-$limit)."'>&laquo;</a></td> ";
								}
							  	$l=1;
								for($i=0;$i<$nume;$i+=$limit){
									if($start<>$i){
										// link
									echo "<td><a href='".$pagename.'&start='.$i."'>$l</a></td> ";
									}else{
										// no link
										echo "<td>$l</td>";
									}
									$l++;
									if($l%21==0){ echo "</tr><tr>";}
								}
							  	if($start+$limit <$nume){
							  echo "<td><a href='".$pagename.'&start='.($start+$limit) ."'>&raquo;</a></td> ";
							  	}
	echo "</tr>
						  </table>";
}
?>